include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )

set (libnewaccountwizard_a_SOURCES
  knewaccountwizard.cpp
  kaccountsummarypage.cpp
  kaccounttypepage.cpp
  kbrokeragepage.cpp
  kcreditcardschedulepage.cpp
  kgeneralloaninfopage.cpp
  khierarchypage.cpp
  kinstitutionpage.cpp
  kloandetailspage.cpp
  kloanpaymentpage.cpp
  kloanpayoutpage.cpp
  kloanschedulepage.cpp
  )

set (libnewaccountwizard_a_UI
  kaccountsummarypage.ui kaccounttypepage.ui
  kbrokeragepage.ui kgeneralloaninfopage.ui
  kgeneralloaninfopage.ui kinstitutionpage.ui
  kloandetailspage.ui kloanpaymentpage.ui
  kloanpayoutpage.ui kloanschedulepage.ui kcreditcardschedulepage.ui khierarchypage.ui
  )

ki18n_wrap_ui(libnewaccountwizard_a_SOURCES ${libnewaccountwizard_a_UI} )

add_library(newaccountwizard STATIC ${libnewaccountwizard_a_SOURCES})
# TODO: clean dependencies
target_link_libraries(newaccountwizard
  KF5::XmlGui
  KF5::Service
  KF5::ConfigGui
  KF5::WidgetsAddons
  KF5::TextWidgets
  KF5::Completion
  KF5::ItemModels
  Qt5::Widgets
  Qt5::Xml
  Alkimia::alkimia
  kmm_wizard
  )

if (KMYMONEY_STABLE_BRANCH)
  target_link_libraries(newaccountwizard KF5::IconThemes)
endif()

# we rely on some dialogs to be generated
# add_dependencies(newaccountwizard)
